package cc.shacocloud.luanniao.core.service.extract.pdf

import cc.shacocloud.luanniao.core.service.text.extract.pdf.PdfFileContentExtractServiceImpl
import org.junit.jupiter.api.Test
import org.springframework.util.ResourceUtils

/**
 *
 * @author 思追(shaco)
 */
class PdfFileContentExtractServiceImplTest {

    @Test
    fun extract() {
        val file = ResourceUtils.getFile("classpath:毛选.pdf")
        val extractService = PdfFileContentExtractServiceImpl()
        val content = extractService.extract(file)
        println(content.length)
    }

}